﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace JeanFish.Data.Configuration
{
    /// <summary>
    /// 表示通用数据设置。
    /// </summary>
    public class CommonDataSetting : ConfigurationSection
    {
        private const string SingletonContextProperty = "singletonContext";
        /// <summary>
        /// 是否使用单例数据上下文
        /// </summary>
        [ConfigurationProperty(SingletonContextProperty, DefaultValue = false)]
        public bool SingletonContext
        {
            get { return (bool)this[SingletonContextProperty]; }
            set { this[SingletonContextProperty] = value; }
        }
    }
}
